home *** CD-ROM | disk | FTP | other *** search
/ QuickTime for the Web (2nd Edition) / QuickTime for the Web (2nd Edition).iso / pc / AppleScript / QUICKTIME 5.0.2 SCRIPTS / Example Files / Track Syntax Examples / add image track < prev    next >
Encoding:
Text File  |  2001-06-04  |  385 b   |  13 lines

  1. tell application "QuickTime Player"
  2.     launch
  3.     activate
  4.     stop every movie
  5.     try
  6.         set the chosen_file to choose file of type {"JPEG", "GIFf", "PICT", "TIFF"} with prompt "Pick an image file:"
  7.         make new movie
  8.         set this_track to make new track at movie 1 with data chosen_file
  9.     on error error_message
  10.         beep
  11.         display dialog error_message buttons {"OK"} default button 1
  12.     end try
  13. end tell